package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BasAssetsPackage;
import com.weiyuwqj.api.util.converter.IntegerConverter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface BasAssetsPackageMapper extends Mapper<BasAssetsPackage> {

    /**
     * 添加包
     * @param assetsPackage 包对象
     * @return
     */
    Integer insertAssetsPackage(BasAssetsPackage assetsPackage);

    /**
     * 查询包列表
     * @param assetsPackage
     * @return
     */
    List<BasAssetsPackage> getPackageList(BasAssetsPackage assetsPackage);

    /**
     * 根据包id修改包状态
     * @param newStatus
     * @param oldStatus
     * @param id
     * @return
     */
    Integer modifyPackageStatusById(@Param("newStatus")Integer newStatus,@Param("oldStatus")Integer oldStatus,@Param("id")Integer id);



}